 <?php
	$lastNo=$this->getGameLastNo($this->type);
	$kjHao=$this->getValue("select data from {$this->prename}data where type={$this->type} and number='{$lastNo['actionNo']}'");
	if($kjHao) $kjHao=explode(',', $kjHao);
	$actionNo=$this->getGameNo($this->type);
	$types=$this->getTypes();
	$kjdTime=$types[$this->type]['data_ftime'];
	$diffTime=strtotime($actionNo['actionTime'])-$this->time-$kjdTime;
	$kjDiffTime=strtotime($lastNo['actionTime'])-$this->time;
?> 

<!DOCTYPE html>
<html>
<head>
<?php $this->display('inc_base.php',0,'1') ?>
	<link href="/skin/new/css/index.css" type="text/css" rel="stylesheet" />
	<link type="text/css" rel="stylesheet" href="/500vip/statics/css/_home.css?version=2.7"  >
		<link type="text/css" rel="stylesheet" href="/common/statics/css/_tip.css?version=2.7" >
		<link type="text/css" rel="stylesheet" href="/common/statics/css/fonts/style.css?version=2.7" >
		<link type="text/css" rel="stylesheet" href="/500vip/statics/css/home/index.css?version=2.7" >
		
		<script>
			try {
				//下面是静态资源url的前缀
				if(typeof(_prefixURL) != "object") {
					window._prefixURL = {
						statics: "/500vip/statics",
						common: "/common/statics"
					};
				}
			} catch(e) {console.log(e);}
			try {
				//注：下一行代码毋删除，或重复定义，或在其他文件出现一样的代码 ,也不要在其他文件定义window.name（  __openWin 方法会用到这个变量）
				if(!window.opener) {
					window.name = "wn_1_home_first";
				} else if(window.name != "wn_1_home_first") {
					window.name = "wn_1_home_first";
				}
			} catch(e) {console.log(e);}
		</script>
		<script type="text/javascript" src="/common/statics/js/jquery-1.11.2.min.js"></script>
		<script type="text/javascript" src="/common/statics/js/_user_.js?_v=1"></script>
		<script type="text/javascript" src="/500vip/statics/js/_home_menu.js?version=2.7"></script>
		
</head>
<body ><div class="bg"style="
    background: url(/images/index/wrap_bg.jpg) top no-repeat;
">
<?php $this->display('inc_header.php') ?>
    <div class="pageBady custom clearfix">     
    <div id="banner" class="clearfix">
        <div class="w1200 pr" style="z-index: 101;width:990px;">
            <div id="flexslider">
                <ul class="slides">
                    <li style="background: url(/images/index/index1.jpg) center repeat-x;"></li>
					
                   
                </ul>
            </div>
            <div class="loginBox" style="    height:255px;width:243px;">
				<?php if($_SESSION[$this->memberSessionName]){ ?>
                <div class="nologin">
				 
                    <div class="loginInfo" style="display: none;">
                        <a href="login.htm" class="btn-org-112x40">登录</a>&nbsp;
                        <a href="register.htm" class="btn-green-112x40">注册</a>
                    </div>
                </div>
                <div id="loginInfo_index">
				 <p>您好：<span class="fee" style="margin-left:20px;"><?=$this->user['nickname']?></span> <em class="b0b"></em> <a href="/user/logout" id="loginOut" class="blue" style=" color: #333333; margin-left: 35px;">退出</a></p>
				  <p> 积分：<strong id="headAccMoney" class="gray"style="margin-left:20px; color:#006fe4;"><?=$this->user['score']?></strong></p>
                    <p>金额：<strong id="headAccMoney" class="green"style=" color: #F13131 !important;"><?=$this->user['coin']?></strong> </p>
					<p class="links">
                        <a href="/cash/recharge" class="btn">充值</a>
                        <a href="/cash/toCash" class="btn"style=" margin-left: 55px;">提现</a>
                        
                    </p>
                    <p class="links"style=" margin-left: -8px;">
                        <a href="/display/sign" dataType="json" call="indexSign" target="ajax" class="btn">签到</a>
                        <a href="/score/goods/current" class="btn">积分兑换</a>
                        <a href="/deposit/pull" dataType="json" call="pull" target="ajax" class="btn">领取收益</a>
                    </p>
                </div>
				<?php }else{?>
					<form action="/user/loginedto" method="post" >
            <div class="loginM" style="z-index:100">
                    <div class="pr ui-form-item" style="width:100%;margin-top: 10px;">
                        <i class="ico-user"></i>
                        <input type="text" class="ui-input" name="username" id="username" placeholder="用户名" style="width:200px"/>
                    </div>
                    <div class="pr ui-form-item mt" style="width:100%;    margin-top: 10px;">
                        <i class="ico-pw"></i>
                        <i class="ico-jp"></i>
                        <input type="password" class="ui-input" name="password" id="password" placeholder="密码" style="width:200px"/>
                    </div>
                    <div class="pr ui-form-item mt" style="width:100%;    margin: 10px 0px;">
                        <input type="text" class="ui-input" name="vcode" id="vcode" placeholder="验证码" style="width:100px"/>
						<img width="150" height="40" border="0" style="cursor:pointer;margin-bottom:0px;width: 90px;height: 36px;" alt="验证码" align="absmiddle" src="/user/vcode/<?=$this->time?>" title="看不清楚，点我换图" onclick="this.src='/user/vcode/'+(new Date()).getTime()"/>
                    </div>
                <div class="loginSave mt">
                            <span class="fr">
                                <a href="javascript:void(0)" onclick="boekf()"  id="findPwd">忘记密码？</a>
                            </span>
							  <span class="lik" style="
    margin-left: 126px;
"><a href="/user/r/G-2uOV8iH4V1vhRO">免费注册</a></span>
                </div>
                <button id="loginPost" class="loginBtn" type="button" onclick="$(this).closest('form').submit()" style="width: 180px;height: 30px;margin: 5px 30px;    background: #f1732d;    border: none;    color: #fff;    font-size: 17px;">登录</button>
            </div>
				</form>
				<?php }?>
            </div>
        </div>
    </div>
    <div class="w1200 clearfix">
        <div class="maincontent" >
		
		
		
		
		<div class="quick-buy-box mt15" style="  width: 485px;height: 224px; margin-top: 0;box-sizing: border-box; float: left; margin: -17px 0px 0px 258px;">
		<div class="quick-buy">

											<ul name="quick_tab_list" class="quick-tab-list">
											<li class="tab-sel-open on" data-gameid="1" name="gameid_5"><a href="#">重庆时时彩</a></li>
											<li class="tab-sel-open" data-gameid="9" name="gameid_1"><a>福彩3D</a></li>
											<li class="tab-sel-open" data-gameid="20" name="gameid_9"><a>北京PK拾</a></li>
											<li class="tab-sel-open" data-gameid="10" name="gameid_2"><a>排列三</a></li>
											<li class="tab-sel-open" data-gameid="7" name="gameid_12"><a>山东11选5</a></li>
											</ul>
											<!--彩种倒计时-->
											<?php
											$i=array('1','9','20','10','7');
											foreach($i as $key=>$val){
											 
											$gg=$this->getRows("select * from {$this->prename}data where type='$val'  order by id desc limit 1");
											$data=array();
											$data=explode(',',$gg[0]['data']); 
											if($key!=0){$h="style='display:none'";}else{$h="";}
											?>
											<div name="content" <?=$h?> id="content_<?=$val?>" class="qb qb-box-list">
												<ul class="qb-info clearfix">
												<li> 第<span name="issue"><?=$gg[0]['number']?></span>期
														
														
													</li>
												
												</ul>
												<div class="qb-selectnumber">
													<i class="sprite sprite-sscd" style="float:left;"></i>
													<ul name="num_list" class="qb-selectnum clearfix qb_dlt_select">
													<?
													 foreach($data as $v){
													?>
													<li class="qb-red lot_sn_red"><input value="<?=$v?>" readonly=""></li>
													<?
													 }
													?>
													</ul>
												</div>
												<div style="display: block;" class="qb-tz-box clearfix">
													
													<span class="dg-btn-box">
		                                                
		                                                <a href="/index/game/<?=$val?>" name="doBet" class="dg-tz-btn">立即投注</a>
		                                            </span>
												</div>
											</div>
											<?php
											}
											?>
										</div>
									</div>
<script>
$('.quick-tab-list li').hover(function(){
	id=$(this).attr("data-gameid");
	$('.quick-tab-list li').removeClass("on");
	$(this).addClass("on");
	$('.qb').hide();
	$('#content_'+id).show();
});
</script>
		
		
		
           
           <!-- <div class="hotLottery " >
				<style type="text/css">
				   #scrollmessage ul{
				   margin: auto auto auto 40px;
				   padding:auto auto auto auto;
				   list-style:none;
				   font-size:13px;
				   }
				   #andyscroll {
				   	overflow: hidden;
				   	padding: 0 13px;
				   	text-align:left;
				   	line-height:3em;
				   	width:592px;
				   	height:147px;
					overflow:hidden;
				   }
				   </style>
                <h2 class="title">即时中奖排行榜</h2>
                   <div id="andyscroll">
                      <div id="scrollmessage">
                        <ul>  
                      <?php
                          $this->getSystemSettings();
                          $this->getTypes();
                          $types=array(1,3,5,6,9,10,12,14,15,16,20,7);
                          $name=explode('|',$this->settings['paihangsjnr']);
                          $name2=explode('|',$this->settings['paihangsjje']);
                          $gg=$this->getRows("select * from {$this->prename}bets where zjCount=1 and bonus>=? order by id desc limit 10",$this->settings['sbje']);
                          if($gg) foreach($gg as $var){
                          $gg=$this->getRows("select * from {$this->prename}bets where zjCount=1 and bonus>=? order by id desc limit 10",$this->settings['sbje']);
                          switch($var['type']){
                          case 1:
                          echo '<li>恭喜会员&nbsp&nbsp【<b style="color:#63B8FF">',$var['nickname'],'</b>】&nbsp重庆时时彩&nbsp ','<b style="color:#ff0000">',$var['actionNo'],'</b>&nbsp期','&nbsp喜中&nbsp<b style="color:#76EE00">',$var['bonus'],'</b>&nbsp元</li>
			             <li>恭喜会员&nbsp【<b style="color:#63B8FF">',$name[rand(0,count($name)-1)],'</b>】&nbsp',$this->types[$num=$types[rand(0,14)]]['title'],'&nbsp','<b style="color:#ff0000">',$this->iff($sss=$this->getGameLastNo($num),$sss['actionNo'],'--'),'</b>&nbsp期','&nbsp喜中&nbsp<b style="color:#76EE00">',$name2[rand(0,count($name2)-1)],'</b>&nbsp元</li>';
                          break;
                          case 3:
                          echo '<li>恭喜会员&nbsp&nbsp【<b style="color:#63B8FF">',$var['nickname'],'</b>】&nbsp&nbsp江西时时彩&nbsp&nbsp','<b style="color:#fedcbd">',$var['actionNo'],'</b>期','&nbsp喜中&nbsp<b style="color:#6a6da9">',$var['bonus'],'</b>&nbsp元</li>';
                          break;
                          case 12:
                          echo '<li>恭喜会员&nbsp&nbsp【<b style="color:#63B8FF">',$var['nickname'],'</b>】&nbsp&nbsp新疆时时彩&nbsp&nbsp','<b style="color:#817936">',$var['actionNo'],'</b>期','&nbsp喜中&nbsp<b style="color:#2b4490">',$var['bonus'],'</b>&nbsp元</li>';
                          break;
                          case 6:
                          echo '<li>恭喜会员&nbsp&nbsp【<b style="color:#63B8FF">',$var['nickname'],'</b>】&nbsp&nbsp广东11选5&nbsp&nbsp&nbsp','<b style="color:#c37e00">',$var['actionNo'],'</b>期','&nbsp喜中&nbsp<b style="color:#e6d12e">',$var['bonus'],'</b>&nbsp元</li>';
                          case 16:
                          echo '<li>恭喜会员&nbsp&nbsp【<b style="color:#63B8FF">',$var['nickname'],'</b>】&nbsp&nbsp江西多乐彩&nbsp&nbsp','<b style="color:#705628">',$var['actionNo'],'</b>期','&nbsp喜中&nbsp<b style="color:#e6d12e">',$var['bonus'],'</b>&nbsp元</li>';
                          break;
	                          	}
                          	}
	                          ?>
                        </div>
                     </div>
                </ul>
            </div>-->
			<!--<div class="weixin" style="width:272px; position:absolute; margin-top:-190px; margin-left:606px;">
                <i><img src="/images/code.png" width="100px" height="100px" /></i>
                <div class="desc">
                    <span class="st">&nbsp;</span>
                    <p>
                        随时随地购彩<br />
                        把财富装进口袋!
                    </p>
                </div>
            </div>-->
        </div>
        <div class="siderBox" >
            <div class="notice">
                <h2>网站公告</h2>
                <ul>
				 <?php
            $data=$this->getRows("select id,title,content,addtime from {$this->prename}content where nodeId=1 and enable=1 order by addtime desc limit 6");
            if($data) foreach($data as $var){ 
            echo "<li val=\"8\"><a href=\"index.php/notice/view/".$var['id']."\"style=\"color:#333;\">{$var['title']}</a></li>";
            } 
  ?>
                                    </ul>
            </div>
			
			
        </div>
        <div class="clear"></div>
    </div>
    </div>   
  <?php $this->display('inc_footer2.php') ?> 
    <?php $this->display('inc_footer3.php') ?>
	<script type="text/javascript">
	   $("#lotteryList").removeClass("block");
	</script>
	<script type="text/javascript">
var stopscroll = false;
var scrollElem = document.getElementById("andyscroll");
var marqueesHeight = scrollElem.style.height;
scrollElem.onmouseover = new Function('stopscroll = true');
scrollElem.onmouseout  = new Function('stopscroll = false');
var preTop = 0;
var currentTop = 0;
var stoptime = 0;
var leftElem = document.getElementById("scrollmessage"); 
scrollElem.appendChild(leftElem.cloneNode(true));
init_srolltext();
function init_srolltext(){
	scrollElem.scrollTop = 0;
	setInterval('scrollUp()', 100);//确定滚动速度的, 数值越小, 速度越快
}
function scrollUp(){
	if(stopscroll) return;
	currentTop += 2; //设为1, 可以实现间歇式的滚动; 设为2, 则是连续滚动
	if(currentTop == 19) {
		stoptime += 1;
		currentTop -= 1;
		if(stoptime == 180) {
			currentTop = 0;
			stoptime = 0;
		}
	}else{
		preTop = scrollElem.scrollTop;
		scrollElem.scrollTop += 1;
		if(preTop == scrollElem.scrollTop){
			scrollElem.scrollTop = 0;
			scrollElem.scrollTop += 1;
		}
	}
}
</script>
<script type="text/javascript">
    $(function(){
        $("#_leftAD [name=close_btn],#_rightAD [name=close_btn]").click(function(){
            $(this).parent().hide();
        });
    });
</script>
<!-- end :  浮动图标  -->

<!-- 倒计时维护 -->
<div class="maintain-countdown" style="display: none;">
  <div class="maintain-time" id="main_count_down">  
    维护倒计时<br>
    <div id="mian_time"></div>
  </div>
</div>
<script>
/*----------  倒计时功能  ----------*/
//倒计时
leftTime = 0;
interval = 1000;
leftTimeCounter = '';
function checkMaint() {
    $.ajax({
        type: 'POST',
        url: '/index/ajaxMaintData.html',
        data: '',
        dataType: 'json',
        timeout: '30000',
        success: function (data) {
            try
            {
                if ( session_timeout(data) === false )
                {
                    return false;
                }
            } catch(e){ console.log(e);}
            if (data.Result == null || data.Result == undefined || data.Result != true) {//没有正确获得数据
                return false;
            }
            if (data.sysStatus == 0 && data.leftTime > 0) {
                leftTime = data.leftTime;
                leftTimeCounter = setInterval(setLeftTime, interval);
            }
        }
    });
}

function setLeftTime() {
    if (leftTime <= 0) {
        clearInterval(leftTimeCounter);
        $('#main_count_down').parent().css('display', 'none');
        __openWin('home','/index/index.html'); //时间为0时跳转到维护页面
    }
    leftTime--;
    if (leftTime > 1800) {
        return;
    }
    var minute = parseInt(leftTime / 60);
    var second = leftTime % 60;
    var txt = '剩余'+minute+'分'+second+'秒';
    //将 txt 显示到页面上
    $('#main_count_down').parent().css('display', 'block');
    $('#mian_time').text(txt);
}

$(function() {
    checkMaint();
});
</script>
<script>
    //全屏高度，防止内容过短的时候，下面出现白边
    $(function(){
        var winH = document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.scrollHeight;
        $("body>div.wrap-bg").css("minHeight", ( winH - $("body>#header_plus").height() - $("body>.jc-footer").height() ) + "px" );
    })
</script>

<div id="_leftAD" class="_float_AD l_AD">
    <img src="/500vip/statics/images/home/float_left.png?v=1">
    <div name="close_btn"></div>
    <a class="top1_btn" href="tencent://message/?uin=917500500&amp;Site=500vip彩票&amp;Menu=yes"></a>
    <div class="top2_btn" onclick="__openWin('reg','/register/regPlay.html')"></div>
    <div class="two_img"><img src="/images/anzhuo.png"></div>
</div>

<div id="_rightAD" class="_float_AD r_AD">
    <img src="/500vip/statics/images/home/float_right.png?v=1">
    <div name="close_btn"></div>
    <div class="top1_btn" onclick="__openWin('other','http://www.cpzxkf.com/')"></div>
    <div class="top2_btn" onclick="__openWin('other','http://www.500vip.cc')"></div>
    <div class="two_img"><img src="/images/anzhuo.png"></div>
</div>

</div>
<script language="javascript" src="/500vip/statics/js/index.js?version=2.7"></script>
</body>
</html>